﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Centny.PdfReader.Tools
{
    public class AssertException : Exception
    {
        public AssertException(String msg)
            : base(msg)
        {

        }
    }
    public class Asserts
    {
        public static void Assert(bool equal, String msg = "")
        {
            if (!equal)
            {
                throw new AssertException(msg);
            }
        }
    }
}
